package design.proxy;

public class StaticProxy implements IStarEvent{

    IStarEvent target;

    public StaticProxy(IStarEvent target){
        this.target = target;
    }
    @Override
    public void saleTicket() {
        System.out.println("代理卖票");
    }

    @Override
    public void sing() {
        this.target.sing();
    }

    @Override
    public void receiveMoney() {
        System.out.println("代理赚钱");
    }
}

